#ifndef SERVICE_TIMER_H
#define SERVICE_TIMER_H
class Service;
struct event;
class ServiceTimer
{
public:
	ServiceTimer(Service* service);
	~ServiceTimer();
	bool pending();
	void add(int timeout);
	void stop();
private:
	static void onTimer(int fd, short ev, void* data);
	event* m_tmr;
};
#endif